* lisp/progmodes/ruby-mode.el (ruby-mode): Add `ruby-mode-set-encoding'
authorDmitry Gutov <dgutov@yandex.ru>
Sat, 5 Oct 2013 02:26:39 +0000 (05:26 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Sat, 5 Oct 2013 02:26:39 +0000 (05:26 +0300)
commit39569684e6635212d68c633c6eea31daa840eac7
treef0382d6d580eca1d353c25c1f811aec9d1f442d3
parent24f84b445a9787f7b684df6693b1b68c9cbce75d
* lisp/progmodes/ruby-mode.el (ruby-mode): Add `ruby-mode-set-encoding'
to `after-save-hook' instead of `before-save-hook', because then
we know exactly what encoding was used to write the file.
(ruby-mode-set-encoding): Use `last-coding-system-used' instead of
guessing.  Call `basic-save-buffer-1' after modifying the buffer.
lisp/ChangeLog
lisp/progmodes/ruby-mode.el